#ifndef WAVEFORM_H
#define WAVEFORM_H

#include "qcustomplot.h"
#include "waveformthread.h"

class WaveForm : public QCustomPlot
{
    Q_OBJECT
public:

    WaveFormThread *thread;
    double currentPos;

    explicit WaveForm(QString fileName);
    ~WaveForm();
    void create(QString fileName);
    void scanAudio();
    void addNewGraph(QVector<double> dataX, QVector<double> dataY);
    void addSlider(double cur);

public slots:
    void addFX(DWORD type, const void* params);
    void delEffects();
    void moveSlider(double cur, double max);
    void getData(QVector<double> dataX, QVector<double> dataY);
    void addSlider();
    void removeAllGraphs();
};

#endif // WAVEFORM_H
